<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let p=prompt("请输入第一数字")
    let q=prompt("请输入第二数字")
    let m=prompt("请输入第三数字")
    console.log(p)
    console.log(q)
    console.log(m)
    console.log(p > q ? p : q);
    console.log((p > q ? p : q) > m ? (p > q ? p : q) : m )
</script>
</html>